# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mlmmj
pkgver=1.3.0
pkgrel=0
pkgdesc="Mailing list managing made joyful"
url="http://mlmmj.org/"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
install="$pkgname.pre-install"
pkgusers="mlmmj"
pkggroups="mlmmj"
source="http://mlmmj.org/releases/mlmmj-$pkgver.tar.gz
	gcc-10.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make -j1 DESTDIR="$pkgdir" install
	install -d "$pkgdir"/usr/share/mlmmj/texts
	cp -r listtexts/* "$pkgdir"/usr/share/mlmmj/texts/
	install -o mlmmj -g mlmmj -d "$pkgdir"/var/spool/mlmmj
}
sha512sums="ea40cae02a7ca5949af6ae01adcdc97536f63f9336f1e4081cf875312bb121a285405353a5863aa6d5f09834b2b6dd328650ed212a30f4940b5fbf82d20184cf  mlmmj-1.3.0.tar.gz
8c929fc1e078ae1ffeaced0a7f188da75de390e93abfe7abd8b481f9f51efee52997dbca2e5904003ac2a95f61be9764da41082fabca01767320b86873f6734c  gcc-10.patch"
